<?
if(!isset($_SESSION)){session_start();};

if($_GET['p'] != 'login'){
	!$_SESSION['doLogin']['user'] ? header('Location: ?m=index&p=login') : '';
}

if($_GET['action'] == 'logout'){
	session_destroy();
	header('Location: ?m=index&p=login');
}

require_once("main.php");
$PHP_SELF = "index.php";
GETMODULE($_GET[m],$_GET[p]);

?>
<!DOCTYPE html>
<html>
<head>
<title><?=WEB_TITLE;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
if($_GET['p']=='check_transfer' || $_GET['p']=='show_members'){
	echo '<link type="text/css" href="'.WEB_URL.'/stylesheets/smoothness/jquery-ui-1.8.4.custom.css" rel="stylesheet" />';
	echo '<link type="text/css" href="'.WEB_URL.'/stylesheets/table_jui.css" rel="stylesheet" />';
}else{
	echo '<link type="text/css" href="'.WEB_URL.'/stylesheets/ui-lightness/jquery-ui-1.8rc2.custom.css" rel="stylesheet" />';
}
?>

<!-- StyleSheet Plugin-->

<!-- End StyleSheet Plugin-->
<script type="text/javascript" src="<?php echo WEB_URL;?>/javascripts/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo WEB_URL?>/javascripts/dump.js"></script>

<!-- Script Plugin -->
<script type="text/javascript" src="<?php echo WEB_URL;?>/javascripts/jquery.validate.js"></script>
<script type="text/javascript" src="<?php echo WEB_URL;?>/javascripts/vibrate.js"></script>
<?php 
if($_GET['p']=='add_bank' || $_GET['p'] == 'all'){
 echo '<script type="text/javascript" src="'. WEB_URL .'/javascripts/jquery.ajaxupload.3.5.js"></script>';
} 
if($_GET['p']=='check_transfer' || $_GET['p']=='show_members'){
 echo '<script type="text/javascript" src="'. WEB_URL .'/javascripts/jquery.dataTables.js"></script>';
} 
?>
<script type="text/javascript" src="<?php echo WEB_URL;?>/javascripts/jquery.jeditable.js"></script>
<!-- Edn Script Plugin-->

<link rel="stylesheet" type="text/css" href="admin_style.css" />

<script type="text/javascript" src="admin.js"></script>

</head>
<body>
<div class='topbar'>
  <table cellpadding='0' cellspacing='0' width='100%'>
  <tr>
  <td valign='top'><img src='images/admin_icon.gif' border='0'></td>
  <td valign='top' align='right'><img src='images/admin_watermark.gif' border='0'></td>
  </tr>
  </table>
</div>
<div id="wrapper">
<?php include ($MODPATHFILE);?>
</div>
<div id="footer">© 2010 - <?=date("Y");?>, Design by <a href="http://www.codeponpon.com/">codePONPON</a>.</div>
</body>
</html>
